package com.sam.im.heiqun.entities;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.orm.SugarRecord;

import java.io.Serializable;

/**
 * 消息界面使用
 * Created by Joe on 2017/1/2.
 * SugarRecord 数据库操作框架
 */

public class MessageEntivity extends SugarRecord implements Serializable {
    @Override
    public String toString() {
        return "MessageEntivity{" +
                "content='" + content + '\'' +
                ", type=" + type +
                ", fromtype=" + fromtype +
                ", fromType=" + fromType +
                ", imgUrl='" + imgUrl + '\'' +
                ", nick='" + nick + '\'' +
                ", fromid=" + fromid +
                ", destid=" + destid +
                ", time=" + time +
                ", messageNum=" + messageNum +
                ", currentuserid=" + currentuserid +
                ", istop=" + istop +
                ", isreceive=" + isreceive +
                ", uniqueness='" + uniqueness + '\'' +
                '}';
    }

    @Expose
    private String content;//消息内容
    @Expose
    private int type;//聊天类型，文本，文件等等
    @Expose
    private int fromtype;//来源类型1：自己发出 2：接收消息
    @Expose
    private int fromType;//1：人对人消息，2：群消息，3：系统通知,101:本机消息
    @Expose
    private String imgUrl;//头像路径
    @Expose
    private String nick;//消息来源的昵称
    @Expose
    private long fromid;//消息来源的id
    @Expose
    private long destid;//接受消息方id
    @Expose
    private long time;//消息时间
    @Expose
    private long messageNum;//未读消息数量
    @Expose
    private long currentuserid;//当前用户
    @Expose
    private int istop;//1：表示置顶；0：表示不置顶；2-拒绝好友申请(试试看)
    @Expose
    private int isreceive;//1:正常接收；0：免打扰
    @SerializedName("uniqueness")
    @Expose
    private String uniqueness;//唯一（确定聊天项）

    public MessageEntivity(String uniqueness) {
        this.uniqueness = uniqueness;
    }

    public MessageEntivity() {
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public long getFromid() {
        return fromid;
    }

    public void setFromid(long fromid) {
        this.fromid = fromid;
    }

    public long getDestid() {
        return destid;
    }

    public void setDestid(long destid) {
        this.destid = destid;
    }

    public long getMessageNum() {
        return messageNum;
    }

    public void setMessageNum(long messageNum) {
        this.messageNum = messageNum;
    }

    public int getFromType() {
        return fromType;
    }

    public void setFromType(int fromType) {
        this.fromType = fromType;
    }

    public long getCurrentuserid() {
        return currentuserid;
    }

    public void setCurrentuserid(long currentuserid) {
        this.currentuserid = currentuserid;
    }

    public String getUniqueness() {
        return uniqueness;
    }

    public void setUniqueness(String uniqueness) {
        this.uniqueness = uniqueness;
    }


    public int getFromtype() {
        return fromtype;
    }

    public void setFromtype(int fromtype) {
        this.fromtype = fromtype;
    }

    public int getIstop() {
        return istop;
    }

    public void setIstop(int istop) {
        this.istop = istop;
    }

    public int getIsreceive() {
        return isreceive;
    }

    public void setIsreceive(int isreceive) {
        this.isreceive = isreceive;
    }
}
